package jp.ac.aiit.yc.softarch.hbcp.service.common;

import flex.messaging.MessageClient;
import flex.messaging.MessageClientListener;
import flex.messaging.config.ConfigMap;
import flex.messaging.services.AbstractBootstrapService;

public class HbcpBootstrapService extends AbstractBootstrapService {

	@Override
	public void initialize(String arg0, ConfigMap arg1) {
		System.out.println("initialize bootstrap");
		MessageClient.addMessageClientCreatedListener(new ClientWatcher());
	}

	@Override
	public void start() {
	}

	@Override
	public void stop() {
	}

	static class ClientWatcher implements MessageClientListener {

		@Override
		public void messageClientCreated(MessageClient messageClinet) {
			System.out.println("message client");
		}

		@Override
		public void messageClientDestroyed(MessageClient messageClinet) {
		}
	}
}
